/*
 * TaintedRow.java
 */

package org.owasp.scrubbr.db;

import java.util.ArrayList;
import java.util.List;

public class TaintedRow {
    
    private ArrayList<Tuple> tuples = new ArrayList<Tuple>();
    private boolean hasTainted = false;
    
    public TaintedRow () { }
    
    public void addTuple ( String column, String value ) {
        
        tuples.add (new Tuple(column,value));
        
    }
    
    public void addTaintedTuple( String column, String value, String cleanedValue, List errors ) {
        
        tuples.add (new Tuple( column, value, cleanedValue, errors ));
        hasTainted = true;
        
    }
    
    public List<Tuple> getAllTuples() {
        return tuples;
    }


    public boolean isTainted() {
        return hasTainted;
    }
    
}
